<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title>找回密码_<?=$this->config->item('site_name');?></title>

	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/login.css')?>" rel="stylesheet" type="text/css" media="screen">
	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
</head>
<body>

<? $this->load->view('header'); ?>
<div id="main" class="clearfix">
	<div class="forget">
		<h2 class="mbxl">找回密码</h2>
		<div class="tget">
			<form name="forgetpassword" action="<?=site_url('user/forgot_password')?>" method="post" onsubmit="return checkmail();">
				<label>你的邮箱</label>
				<div class="iput"><input value="" id="forgetemail" name="email" class="getext"><input type="submit" value="提交" class="btntj mlm"></div>
			</form>
		</div>
		<div></div>
	</div>
</div>
<script type="text/javascript">
     var LocString=String(window.document.location.href);
    var email_validate  = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/;
     function getQueryStr(str){
         var rs = new RegExp("(^|)"+str+"=([^\&]*)(\&|$)","gi").exec(LocString), tmp;

         if(tmp=rs){
             return tmp[2];
         }
         return "";
     }
     if(email_validate.test(getQueryStr("email")))
	 {
		$("#forgetemail").val(getQueryStr("email"));
	 }
</script>
<script src="<?=path_res('static/js/forgetpassword.js')?>"></script>
<? $this->load->view('footer'); ?>